-- GENERATED SPELL FOR [Highborne Lichling] --


function spell0_6117(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_6117', 0, 1)
end

function spell1_6117(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(20822,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6117', 7000, 1)
end

function Sorts_6117(pUnit, Event)
local choix_sorts_6117 = math.random(0, 1)
if choix_sorts_6117 == 0 then
pUnit:RegisterEvent('spell0_6117', 1, 1)
end
if choix_sorts_6117 == 1 then
pUnit:RegisterEvent('spell1_6117', 1, 1)
end
end

function mob6117_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6117', math.random(1500, 3000), 1)
end

function mob6117_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6117_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6117_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6117, 1, 'mob6117_Action')
RegisterUnitEvent(6117, 2, 'mob6117_Leave')
RegisterUnitEvent(6117, 3, 'mob6117_Kill')
RegisterUnitEvent(6117, 4, 'mob6117_Die')
